@extends('orange.layouts.indexPublic')
@section('title'){{ $newsInfo->title.'-'.Site::get('webname') }} @endsection
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/orange/css/index/newsInfo.css')}}">
@endsection
{{--主体内容--}}
@section('content')
    {{--主导航--}}
    @include('orange.layouts.mainNav')
    {{--主导航结束--}}

    {{--主要内容--}}
    <div class="main">
        <div class="wrapper">
            {{--主要内容-资讯列表--}}
            <div class="content">
                <div class="title">
                    <h2><span>{{ $newsInfo->title }}</span></h2>
                    <div class="status">
                        <span class="postDate">{{ $newsInfo->updated_at }}</span>
                        <span class="reading">阅读量：{{ $newsInfo->readnum }}</span>
                        @if(!empty($newsInfo->source))<span class="source">{{ '来源：'.$newsInfo->source}}</span>@endif
                        @if(!empty($newsInfo->publisher))<span class="publisher">{{ '作者：'.$newsInfo->publisher}}</span>@endif
                    </div>
                </div>
                <div class="section">{!! $newsInfo->editorValue !!}</div>
            </div>
            {{--主要内容-资讯列表结束--}}

            {{--侧边栏--}}
            <div class="aside">
                {{--求职标签--}}
                <div class="jobLabel">
                    <h2><span>求职标签</span></h2>
                    <ul>
                        <li><a class="active" href="{{  route('news') }}?search=销售">销售</a></li>
                        <li><a href="{{  route('news') }}?search=会计">会计</a></li>
                        <li><a href="{{  route('news') }}?search=计算机">计算机</a></li>
                        <li><a href="{{  route('news') }}?search=行政">行政</a></li>
                        <li><a href="{{  route('news') }}?search=物流">物流</a></li>
                        <li><a href="{{  route('news') }}?search=传媒">传媒</a></li>
                        <li><a href="{{  route('news') }}?search=法律">法律</a></li>
                        <li><a href="{{  route('news') }}?search=教师">教师</a></li>
                        <li><a href="{{  route('news') }}?search=编辑">编辑</a></li>
                        <li><a href="{{  route('news') }}?search=人力资源">人力资源</a></li>
                        <li><a href="{{  route('news') }}?search=主管">主管</a></li>
                        <li><a href="{{  route('news') }}?search=经理">经理</a></li>
                        <li><a href="{{  route('news') }}?search=化工">化工</a></li>
                        <li><a href="{{  route('news') }}?search=带薪年假">带薪年假</a></li>
                        <li><a href="{{  route('news') }}?search=电子商务">电子商务</a></li>
                        <li><a href="{{  route('news') }}?search=有年终奖">有年终奖</a></li>
                        <li><a href="{{  route('news') }}?search=酒店">酒店</a></li>
                        <li><a href="{{  route('news') }}?search=产品经理">产品经理</a></li>
                        <li><a href="{{  route('news') }}?search=双休">双休</a></li>
                        <li><a href="{{  route('news') }}?search=五险一金">五险一金</a></li>
                    </ul>
                </div>
                {{--热门文章--}}
                <div class="hotArticles">
                    <h2><span>热门文章</span></h2>
                    <ul>
                        @if(count($hotNews) > 0 )
                            <?php $i = 1;?>
                            @foreach($hotNews as $v)
                                <li>
                                    @if($i == 1)
                                        <a href="{{ route('newsinfo',['id'=>$v->id]) }}" target="_blank">
                                            <span class="icon top1"></span><span class="cont">{{ msubstr($v->title,0,23) }}</span>
                                        </a>
                                    @elseif($i == 2)
                                        <a href="{{ route('newsinfo',['id'=>$v->id]) }}" target="_blank">
                                            <span class="icon top2"></span><span class="cont">{{ msubstr($v->title,0,23) }}</span>
                                        </a>
                                    @elseif($i == 3)
                                        <a href="{{ route('newsinfo',['id'=>$v->id]) }}" target="_blank">
                                            <span class="icon top3"></span><span class="cont">{{ msubstr($v->title,0,23) }}</span>
                                        </a>
                                    @else
                                        <a href="{{ route('newsinfo',['id'=>$v->id]) }}" target="_blank">
                                            <span class="num">{{$i}}</span><span class="cont">{{ msubstr($v->title,0,23) }}</span>
                                        </a>
                                    @endif
                                </li>
                                <?php $i++;?>
                            @endforeach
                        @endif
                    </ul>
                </div>
            </div>
            {{--侧边栏结束--}}
        </div>
    </div>
    {{--主要内容--}}
    <?php
    ?>
@endsection
{{--职位列表js--}}
@section('js')
    @parent
    <script>
    </script>
@endsection